package com.railway.service;

import java.util.List;

import com.railway.bean.LoseCreditUser;
import com.railway.bean.Page;

/**
 * @author 
 *
 */
public interface LoseCreditService { 
	/**
	 * @param user_name
	 * @param user_id_num
	 * @return
	 * 根据用户名和身份证号查询用户
	 */
	List<LoseCreditUser> selectUser(String user_name,String user_id_num);
	
	/**
	 * 查询所有失信人员信息
	 * @param pageNum
	 * @param pageSize
	 * @return
	 */
	Page<LoseCreditUser> selectUserAll(int pageNum,int pageSize);
	
	/**
	 * @param loseCredit
	 * @return
	 * 添加业务
	 */
	int addLoseCredit(LoseCreditUser l);
	
	/**
	 * 通过失信人名
	 * 身份证id
	 * 搜索
	 * @param key
	 * @param pageNum
	 * @param pageSize
	 * @return
	 */
	List<LoseCreditUser> selectLcuLimit(String key,int pageNum,int pageSize);
	
	/**
	 *搜索指定失信人或身份证总数
	 * @return
	 */
	int selectCountLcu(String key);
}
